<?php
$tdatapacking_list_items=array();
	$tdatapacking_list_items[".NumberOfChars"]=80; 
	$tdatapacking_list_items[".ShortName"]="packing_list_items";
	$tdatapacking_list_items[".OwnerID"]="";
	$tdatapacking_list_items[".OriginalTable"]="packing_list_items";


	
//	field labels
$fieldLabelspacking_list_items = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelspacking_list_items["English"]=array();
	$fieldToolTipspacking_list_items["English"]=array();
	$fieldLabelspacking_list_items["English"]["id"] = "Id";
	$fieldToolTipspacking_list_items["English"]["id"] = "";
	$fieldLabelspacking_list_items["English"]["packing_list_id"] = "Packing List";
	$fieldToolTipspacking_list_items["English"]["packing_list_id"] = "";
	$fieldLabelspacking_list_items["English"]["package_no"] = "Package No";
	$fieldToolTipspacking_list_items["English"]["package_no"] = "";
	$fieldLabelspacking_list_items["English"]["gross_weight"] = "Gross Weight";
	$fieldToolTipspacking_list_items["English"]["gross_weight"] = "";
	$fieldLabelspacking_list_items["English"]["legal_weight"] = "Legal Weight";
	$fieldToolTipspacking_list_items["English"]["legal_weight"] = "";
	$fieldLabelspacking_list_items["English"]["net_weight"] = "Net Weight";
	$fieldToolTipspacking_list_items["English"]["net_weight"] = "";
	$fieldLabelspacking_list_items["English"]["height"] = "Height";
	$fieldToolTipspacking_list_items["English"]["height"] = "";
	$fieldLabelspacking_list_items["English"]["width"] = "Width";
	$fieldToolTipspacking_list_items["English"]["width"] = "";
	$fieldLabelspacking_list_items["English"]["length"] = "Length";
	$fieldToolTipspacking_list_items["English"]["length"] = "";
	$fieldLabelspacking_list_items["English"]["quantity"] = "Quantity";
	$fieldToolTipspacking_list_items["English"]["quantity"] = "";
	$fieldLabelspacking_list_items["English"]["description"] = "Description";
	$fieldToolTipspacking_list_items["English"]["description"] = "";
	if (count($fieldToolTipspacking_list_items["English"])){
		$tdatapacking_list_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["packing_list_id"] = "Packing List Id";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["packing_list_id"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["package_no"] = "Package No";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["package_no"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["gross_weight"] = "Gross Weight";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["gross_weight"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["legal_weight"] = "Legal Weight";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["legal_weight"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["net_weight"] = "Net Weight";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["net_weight"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["height"] = "Height";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["height"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["width"] = "Width";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["width"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["length"] = "Length";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["length"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["quantity"] = "Quantity";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["quantity"] = "";
	$fieldLabelspacking_list_items["Chinese (Hong Kong S.A.R.)"]["description"] = "Description";
	$fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"]["description"] = "";
	if (count($fieldToolTipspacking_list_items["Chinese (Hong Kong S.A.R.)"])){
		$tdatapacking_list_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]=array();
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]=array();
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["packing_list_id"] = "Packing List Id";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["packing_list_id"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["package_no"] = "Package No";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["package_no"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["gross_weight"] = "Gross Weight";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["gross_weight"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["legal_weight"] = "Legal Weight";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["legal_weight"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["net_weight"] = "Net Weight";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["net_weight"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["height"] = "Height";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["height"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["width"] = "Width";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["width"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["length"] = "Length";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["length"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["quantity"] = "Quantity";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["quantity"] = "";
	$fieldLabelspacking_list_items["Chinese (Taiwan)"]["description"] = "Description";
	$fieldToolTipspacking_list_items["Chinese (Taiwan)"]["description"] = "";
	if (count($fieldToolTipspacking_list_items["Chinese (Taiwan)"])){
		$tdatapacking_list_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelspacking_list_items["French"]=array();
	$fieldToolTipspacking_list_items["French"]=array();
	$fieldLabelspacking_list_items["French"]["id"] = "Id";
	$fieldToolTipspacking_list_items["French"]["id"] = "";
	$fieldLabelspacking_list_items["French"]["packing_list_id"] = "Packing List Id";
	$fieldToolTipspacking_list_items["French"]["packing_list_id"] = "";
	$fieldLabelspacking_list_items["French"]["package_no"] = "Package No";
	$fieldToolTipspacking_list_items["French"]["package_no"] = "";
	$fieldLabelspacking_list_items["French"]["gross_weight"] = "Gross Weight";
	$fieldToolTipspacking_list_items["French"]["gross_weight"] = "";
	$fieldLabelspacking_list_items["French"]["legal_weight"] = "Legal Weight";
	$fieldToolTipspacking_list_items["French"]["legal_weight"] = "";
	$fieldLabelspacking_list_items["French"]["net_weight"] = "Net Weight";
	$fieldToolTipspacking_list_items["French"]["net_weight"] = "";
	$fieldLabelspacking_list_items["French"]["height"] = "Height";
	$fieldToolTipspacking_list_items["French"]["height"] = "";
	$fieldLabelspacking_list_items["French"]["width"] = "Width";
	$fieldToolTipspacking_list_items["French"]["width"] = "";
	$fieldLabelspacking_list_items["French"]["length"] = "Length";
	$fieldToolTipspacking_list_items["French"]["length"] = "";
	$fieldLabelspacking_list_items["French"]["quantity"] = "Quantity";
	$fieldToolTipspacking_list_items["French"]["quantity"] = "";
	$fieldLabelspacking_list_items["French"]["description"] = "Description";
	$fieldToolTipspacking_list_items["French"]["description"] = "";
	if (count($fieldToolTipspacking_list_items["French"])){
		$tdatapacking_list_items[".isUseToolTips"]=true;
	}
}


	
	$tdatapacking_list_items[".NCSearch"]=true;

	

$tdatapacking_list_items[".shortTableName"] = "packing_list_items";
$tdatapacking_list_items[".nSecOptions"] = 0;
$tdatapacking_list_items[".recsPerRowList"] = 1;	
$tdatapacking_list_items[".tableGroupBy"] = "0";
$tdatapacking_list_items[".mainTableOwnerID"] = "";
$tdatapacking_list_items[".moveNext"] = 1;




$tdatapacking_list_items[".showAddInPopup"] = false;

$tdatapacking_list_items[".showEditInPopup"] = false;

$tdatapacking_list_items[".showViewInPopup"] = false;


$tdatapacking_list_items[".fieldsForRegister"] = array();

$tdatapacking_list_items[".listAjax"] = true;

	$tdatapacking_list_items[".audit"] = false;

	$tdatapacking_list_items[".locking"] = false;
	
$tdatapacking_list_items[".listIcons"] = true;
$tdatapacking_list_items[".edit"] = true;
$tdatapacking_list_items[".inlineEdit"] = true;
$tdatapacking_list_items[".view"] = true;

$tdatapacking_list_items[".exportTo"] = true;

$tdatapacking_list_items[".printFriendly"] = true;

$tdatapacking_list_items[".delete"] = true;

$tdatapacking_list_items[".showSimpleSearchOptions"] = true;

$tdatapacking_list_items[".showSearchPanel"] = true;


$tdatapacking_list_items[".isUseAjaxSuggest"] = true;

$tdatapacking_list_items[".rowHighlite"] = true;


// button handlers file names

$tdatapacking_list_items[".addPageEvents"] = false;

$tdatapacking_list_items[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatapacking_list_items[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatapacking_list_items[".isUseTimeForSearch"] = false;

$tdatapacking_list_items[".isUseiBox"] = false;



$tdatapacking_list_items[".isUseInlineAdd"] = true;

$tdatapacking_list_items[".isUseInlineEdit"] = true;
$tdatapacking_list_items[".isUseInlineJs"] = $tdatapacking_list_items[".isUseInlineAdd"] || $tdatapacking_list_items[".isUseInlineEdit"];

$tdatapacking_list_items[".allSearchFields"] = array();

$tdatapacking_list_items[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "id";	
}
$tdatapacking_list_items[".globSearchFields"][] = "packing_list_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("packing_list_id", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "packing_list_id";	
}
$tdatapacking_list_items[".globSearchFields"][] = "package_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("package_no", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "package_no";	
}
$tdatapacking_list_items[".globSearchFields"][] = "gross_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gross_weight", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "gross_weight";	
}
$tdatapacking_list_items[".globSearchFields"][] = "legal_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("legal_weight", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "legal_weight";	
}
$tdatapacking_list_items[".globSearchFields"][] = "net_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("net_weight", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "net_weight";	
}
$tdatapacking_list_items[".globSearchFields"][] = "height";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("height", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "height";	
}
$tdatapacking_list_items[".globSearchFields"][] = "width";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("width", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "width";	
}
$tdatapacking_list_items[".globSearchFields"][] = "length";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("length", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "length";	
}
$tdatapacking_list_items[".globSearchFields"][] = "quantity";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("quantity", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "quantity";	
}
$tdatapacking_list_items[".globSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatapacking_list_items[".allSearchFields"]))
{
	$tdatapacking_list_items[".allSearchFields"][] = "description";	
}


$tdatapacking_list_items[".googleLikeFields"][] = "id";
$tdatapacking_list_items[".googleLikeFields"][] = "packing_list_id";
$tdatapacking_list_items[".googleLikeFields"][] = "package_no";
$tdatapacking_list_items[".googleLikeFields"][] = "gross_weight";
$tdatapacking_list_items[".googleLikeFields"][] = "legal_weight";
$tdatapacking_list_items[".googleLikeFields"][] = "net_weight";
$tdatapacking_list_items[".googleLikeFields"][] = "height";
$tdatapacking_list_items[".googleLikeFields"][] = "width";
$tdatapacking_list_items[".googleLikeFields"][] = "length";
$tdatapacking_list_items[".googleLikeFields"][] = "quantity";
$tdatapacking_list_items[".googleLikeFields"][] = "description";



$tdatapacking_list_items[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "id";	
}
$tdatapacking_list_items[".advSearchFields"][] = "packing_list_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("packing_list_id", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "packing_list_id";	
}
$tdatapacking_list_items[".advSearchFields"][] = "package_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("package_no", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "package_no";	
}
$tdatapacking_list_items[".advSearchFields"][] = "gross_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gross_weight", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "gross_weight";	
}
$tdatapacking_list_items[".advSearchFields"][] = "legal_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("legal_weight", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "legal_weight";	
}
$tdatapacking_list_items[".advSearchFields"][] = "net_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("net_weight", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "net_weight";	
}
$tdatapacking_list_items[".advSearchFields"][] = "height";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("height", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "height";	
}
$tdatapacking_list_items[".advSearchFields"][] = "width";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("width", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "width";	
}
$tdatapacking_list_items[".advSearchFields"][] = "length";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("length", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "length";	
}
$tdatapacking_list_items[".advSearchFields"][] = "quantity";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("quantity", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "quantity";	
}
$tdatapacking_list_items[".advSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatapacking_list_items[".allSearchFields"])) 
{
	$tdatapacking_list_items[".allSearchFields"][] = "description";	
}

$tdatapacking_list_items[".isTableType"] = "list";


	

$tdatapacking_list_items[".isDisplayLoading"] = true;

$tdatapacking_list_items[".isResizeColumns"] = false;





$tdatapacking_list_items[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatapacking_list_items[".strOrderBy"] = $gstrOrderBy;
	
$tdatapacking_list_items[".orderindexes"] = array();

$tdatapacking_list_items[".sqlHead"] = "SELECT id,   packing_list_id,   package_no,   gross_weight,   legal_weight,   net_weight,   height,   width,   length,   quantity,   description";
$tdatapacking_list_items[".sqlFrom"] = "FROM packing_list_items";
$tdatapacking_list_items[".sqlWhereExpr"] = "";
$tdatapacking_list_items[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatapacking_list_items[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatapacking_list_items[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatapacking_list_items[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["id"]=$fdata;
//	packing_list_id
	$fdata = array();
	$fdata["strName"] = "packing_list_id";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Packing List"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "packing_list_id";
	
		$fdata["FullName"]= "packing_list_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["packing_list_id"]=$fdata;
//	package_no
	$fdata = array();
	$fdata["strName"] = "package_no";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Package No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "package_no";
	
		$fdata["FullName"]= "package_no";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["package_no"]=$fdata;
//	gross_weight
	$fdata = array();
	$fdata["strName"] = "gross_weight";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Gross Weight"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "gross_weight";
	
		$fdata["FullName"]= "gross_weight";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["gross_weight"]=$fdata;
//	legal_weight
	$fdata = array();
	$fdata["strName"] = "legal_weight";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Legal Weight"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "legal_weight";
	
		$fdata["FullName"]= "legal_weight";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["legal_weight"]=$fdata;
//	net_weight
	$fdata = array();
	$fdata["strName"] = "net_weight";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Net Weight"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "net_weight";
	
		$fdata["FullName"]= "net_weight";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["net_weight"]=$fdata;
//	height
	$fdata = array();
	$fdata["strName"] = "height";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Height"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "height";
	
		$fdata["FullName"]= "height";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["height"]=$fdata;
//	width
	$fdata = array();
	$fdata["strName"] = "width";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Width"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "width";
	
		$fdata["FullName"]= "width";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["width"]=$fdata;
//	length
	$fdata = array();
	$fdata["strName"] = "length";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Length"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "length";
	
		$fdata["FullName"]= "length";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["length"]=$fdata;
//	quantity
	$fdata = array();
	$fdata["strName"] = "quantity";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Quantity"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "quantity";
	
		$fdata["FullName"]= "quantity";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["quantity"]=$fdata;
//	description
	$fdata = array();
	$fdata["strName"] = "description";
	$fdata["ownerTable"] = "packing_list_items";
		$fdata["Label"]="Description"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "description";
	
		$fdata["FullName"]= "description";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=1500";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapacking_list_items["description"]=$fdata;

	
$tables_data["packing_list_items"]=&$tdatapacking_list_items;
$field_labels["packing_list_items"] = &$fieldLabelspacking_list_items;
$fieldToolTips["packing_list_items"] = &$fieldToolTipspacking_list_items;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["packing_list_items"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["packing_list_items"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="packing_lists";
	$masterTablesData["packing_list_items"][$mIndex] = array(
		  "mDataSourceTable"=>"packing_lists"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "packing_lists"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 1
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$masterTablesData["packing_list_items"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["packing_list_items"][$mIndex]["detailKeys"][]="packing_list_id";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto554=array();
$proto554["m_strHead"] = "SELECT";
$proto554["m_strFieldList"] = "id,   packing_list_id,   package_no,   gross_weight,   legal_weight,   net_weight,   height,   width,   length,   quantity,   description";
$proto554["m_strFrom"] = "FROM packing_list_items";
$proto554["m_strWhere"] = "";
$proto554["m_strOrderBy"] = "";
$proto554["m_strTail"] = "";
$proto555=array();
$proto555["m_sql"] = "";
$proto555["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto555["m_column"]=$obj;
$proto555["m_contained"] = array();
$proto555["m_strCase"] = "";
$proto555["m_havingmode"] = "0";
$proto555["m_inBrackets"] = "0";
$proto555["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto555);

$proto554["m_where"] = $obj;
$proto557=array();
$proto557["m_sql"] = "";
$proto557["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto557["m_column"]=$obj;
$proto557["m_contained"] = array();
$proto557["m_strCase"] = "";
$proto557["m_havingmode"] = "0";
$proto557["m_inBrackets"] = "0";
$proto557["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto557);

$proto554["m_having"] = $obj;
$proto554["m_fieldlist"] = array();
						$proto559=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "packing_list_items"
));

$proto559["m_expr"]=$obj;
$proto559["m_alias"] = "";
$obj = new SQLFieldListItem($proto559);

$proto554["m_fieldlist"][]=$obj;
						$proto561=array();
			$obj = new SQLField(array(
	"m_strName" => "packing_list_id",
	"m_strTable" => "packing_list_items"
));

$proto561["m_expr"]=$obj;
$proto561["m_alias"] = "";
$obj = new SQLFieldListItem($proto561);

$proto554["m_fieldlist"][]=$obj;
						$proto563=array();
			$obj = new SQLField(array(
	"m_strName" => "package_no",
	"m_strTable" => "packing_list_items"
));

$proto563["m_expr"]=$obj;
$proto563["m_alias"] = "";
$obj = new SQLFieldListItem($proto563);

$proto554["m_fieldlist"][]=$obj;
						$proto565=array();
			$obj = new SQLField(array(
	"m_strName" => "gross_weight",
	"m_strTable" => "packing_list_items"
));

$proto565["m_expr"]=$obj;
$proto565["m_alias"] = "";
$obj = new SQLFieldListItem($proto565);

$proto554["m_fieldlist"][]=$obj;
						$proto567=array();
			$obj = new SQLField(array(
	"m_strName" => "legal_weight",
	"m_strTable" => "packing_list_items"
));

$proto567["m_expr"]=$obj;
$proto567["m_alias"] = "";
$obj = new SQLFieldListItem($proto567);

$proto554["m_fieldlist"][]=$obj;
						$proto569=array();
			$obj = new SQLField(array(
	"m_strName" => "net_weight",
	"m_strTable" => "packing_list_items"
));

$proto569["m_expr"]=$obj;
$proto569["m_alias"] = "";
$obj = new SQLFieldListItem($proto569);

$proto554["m_fieldlist"][]=$obj;
						$proto571=array();
			$obj = new SQLField(array(
	"m_strName" => "height",
	"m_strTable" => "packing_list_items"
));

$proto571["m_expr"]=$obj;
$proto571["m_alias"] = "";
$obj = new SQLFieldListItem($proto571);

$proto554["m_fieldlist"][]=$obj;
						$proto573=array();
			$obj = new SQLField(array(
	"m_strName" => "width",
	"m_strTable" => "packing_list_items"
));

$proto573["m_expr"]=$obj;
$proto573["m_alias"] = "";
$obj = new SQLFieldListItem($proto573);

$proto554["m_fieldlist"][]=$obj;
						$proto575=array();
			$obj = new SQLField(array(
	"m_strName" => "length",
	"m_strTable" => "packing_list_items"
));

$proto575["m_expr"]=$obj;
$proto575["m_alias"] = "";
$obj = new SQLFieldListItem($proto575);

$proto554["m_fieldlist"][]=$obj;
						$proto577=array();
			$obj = new SQLField(array(
	"m_strName" => "quantity",
	"m_strTable" => "packing_list_items"
));

$proto577["m_expr"]=$obj;
$proto577["m_alias"] = "";
$obj = new SQLFieldListItem($proto577);

$proto554["m_fieldlist"][]=$obj;
						$proto579=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "packing_list_items"
));

$proto579["m_expr"]=$obj;
$proto579["m_alias"] = "";
$obj = new SQLFieldListItem($proto579);

$proto554["m_fieldlist"][]=$obj;
$proto554["m_fromlist"] = array();
												$proto581=array();
$proto581["m_link"] = "SQLL_MAIN";
			$proto582=array();
$proto582["m_strName"] = "packing_list_items";
$proto582["m_columns"] = array();
$proto582["m_columns"][] = "id";
$proto582["m_columns"][] = "packing_list_id";
$proto582["m_columns"][] = "package_no";
$proto582["m_columns"][] = "gross_weight";
$proto582["m_columns"][] = "legal_weight";
$proto582["m_columns"][] = "net_weight";
$proto582["m_columns"][] = "height";
$proto582["m_columns"][] = "width";
$proto582["m_columns"][] = "length";
$proto582["m_columns"][] = "quantity";
$proto582["m_columns"][] = "description";
$obj = new SQLTable($proto582);

$proto581["m_table"] = $obj;
$proto581["m_alias"] = "";
$proto583=array();
$proto583["m_sql"] = "";
$proto583["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto583["m_column"]=$obj;
$proto583["m_contained"] = array();
$proto583["m_strCase"] = "";
$proto583["m_havingmode"] = "0";
$proto583["m_inBrackets"] = "0";
$proto583["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto583);

$proto581["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto581);

$proto554["m_fromlist"][]=$obj;
$proto554["m_groupby"] = array();
$proto554["m_orderby"] = array();
$obj = new SQLQuery($proto554);

$queryData_packing_list_items = $obj;
$tdatapacking_list_items[".sqlquery"] = $queryData_packing_list_items;

$tableEvents["packing_list_items"] = new eventsBase;

?>
